package cn.mesmile.design.decorator;

import java.io.BufferedInputStream;
import java.io.FileInputStream;
import java.io.FileNotFoundException;
import java.io.InputStream;

/**
 * @author zb
 * @version 1.0
 * @date 2020/11/21 10:54
 * @description
 */
public class Main {

    public static void main(String[] args) throws FileNotFoundException {
        // 选个自行车
        Bike bigBike = new BigBike();
        // 搭配轮胎
        bigBike = new RSCBikeDecorator(bigBike);

        // >>>>>>> 大号自行车, >>>>>>>>>> 增加一个防爆胎, > 增加一个喇叭, > 增加一个喇叭
        bigBike = new SuonaBikeDecorator(bigBike);
        bigBike = new SuonaBikeDecorator(bigBike);

        System.out.println("bigBike.getDescription() = " + bigBike.getDescription());
        System.out.println("bigBike.getPrice() = " + bigBike.getPrice());

        // 输入流
        InputStream inputStream = new BufferedInputStream(new FileInputStream(""));
    }
}
